/**
 * Copyright (C), 2020-2020, 人生无限公司
 * FileName: Test6
 * Description:测试Techer类和Student类
 *
 * @create: 2020/7/15 13:55
 * @author Reanon
 * @version JDK 1.8.0_251
 */
package cn.reanon.day05.homework.test6;

public class Test6 {
    public static void main(String[] args) {
        Student student =new Student("周同学","18","Java面向对象");
        Teacher teacher =new Teacher("韩老师","30","Java面向对象");
        teacher.eat();
        teacher.teach();
        student.eat();
        student.study();
    }
}
